{extend name="index/index" /}

{block name="sidebar"}
<div id="sidebar-menu">
    <ul>
        <li class='has_sub'><a href='javascript:void(0);'><i class='icon-home-3'></i><span>仪表盘</span>
            <span class="pull-right"><i class="fa fa-angle-down"></i></span></a>
            <ul>
                <li><a href='{:url("admin/Index/login")}' ><span>首页</span></a></li>
            </ul>
        </li>
        <li class='has_sub'><a href='javascript:void(0);'><i
                class='icon-feather'></i><span>用户管理</span> <span class="pull-right"><i
                class="fa fa-angle-down"></i></span></a>
            <ul>
                <li><a href='{:url("admin/User/index")}'><span>用户列表</span></a></li>
                <li><a href='{:url("admin/User/create")}'><span>用户添加</span></a></li>
            </ul>
        </li>
        <li class='has_sub'><a href='javascript:void(0);'><i class='fa fa-map-marker'></i><span>管理员管理</span>
            <span class="pull-right"><i class="fa fa-angle-down"></i></span></a>
            <ul>
                <li><a href='{:url("admin/Admin/index")}'><span>管理员列表</span></a></li>
                <li><a href='{:url("admin/Admin/create")}'><span>管理员添加</span></a></li>
            </ul>
        </li>
        <li class='has_sub'><a href='javascript:void(0);'><i class='icon-pencil-3'></i><span>角色管理</span>
            <span class="pull-right"><i class="fa fa-angle-down"></i></span></a>
            <ul>
                <li><a href='{:url("admin/role/index")}'><span>角色列表</span></a></li>
            </ul>
        </li>
        <li class='has_sub'><a href='javascript:void(0);'><i class='fa fa-table'></i><span>权限管理</span>
            <span class="pull-right"><i class="fa fa-angle-down"></i></span></a>
            <ul>
                <li><a href='{:url("admin/auth/index")}'><span>权限列表</span></a></li>
                <li><a href='{:url("admin/auth/create")}'><span>权限添加</span></a></li>
            </ul>
        </li>
        <li class='has_sub'><a href='javascript:void(0);'><i class='fa fa-envelope'></i><span>笔记管理</span>
            <span class="pull-right"><i class="fa fa-angle-down"></i></span></a>
            <ul>
                <li><a href='{:url("admin/Note/index")}' class='active'><span>笔记列表</span></a></li>
            </ul>
        </li>
        <li class='has_sub'><a href='javascript:void(0);'><i class='icon-chart-line'></i><span>分类管理</span>
            <span class="pull-right"><i class="fa fa-angle-down"></i></span></a>
            <ul>
                <li><a href='{:url("admin/Category/index")}'><span>分类列表</span></a></li>
                <li><a href='{:url("admin/Category/add")}'><span>分类添加</span></a></li>
                <li><a href='{:url("admin/Category/noteList")}'><span>笔记类型列表</span></a></li>
                <li><a href='{:url("admin/Category/noteAdd")}'><span>笔记类型添加</span></a></li>
            </ul>
        </li>
        <li class='has_sub'><a href='javascript:void(0);'><i class='icon-megaphone'></i><span>评论管理</span>
            <span class="pull-right"><i class="fa fa-angle-down"></i></span></a>
            <ul>
                <li><a href='{:url("admin/Comment/index")}'><span>评论列表</span></a></li>
            </ul>
        </li>
        <li class='has_sub'><a href='javascript:void(0);'><i class='icon-megaphone'></i><span>新闻管理</span>
            <span class="pull-right"><i class="fa fa-angle-down"></i></span></a>
            <ul>
                <li><a href='{:url("admin/news/index")}'><span>新闻列表</span></a></li>
                <li><a href='{:url("admin/news/create")}'><span>添加新闻</span></a></li>
            </ul>
        </li>
        <li class='has_sub'><a href='javascript:void(0);'><i class='icon-megaphone'></i><span>推荐管理</span>
            <span class="pull-right"><i class="fa fa-angle-down"></i></span></a>
            <ul>
                <li><a href='{:url("admin/Top/index")}'><span>推荐列表</span></a></li>
            </ul>
        </li>
    </ul>
    <div class="clearfix"></div>
</div>
{/block}

{block name="main"}
<div class="row">
    <div class="col-sm-3">
        <!-- Begin user profile -->
        <div class="text-center user-profile-2">
            <img src="/static/uploads/img/{$data['thumb']}" alt="{$data['title']}" width="120" height="150">
            <h4>{$data['title']}</h4>

            <h5>{$data['user']}</h5>
            <ul class="list-group">
                <li class="list-group-item">
                    <span class="badge">{$data['praise']}</span>
                    点赞数
                </li>
                <li class="list-group-item">
                    <span class="badge">{$data['tag_name']}</span>
                    标签
                </li>
                <li class="list-group-item">
                    <span class="badge">{$data['create_at']}</span>
                    发布时间
                </li>
            </ul>
        </div><!-- End div .box-info -->
        <!-- Begin user profile -->
    </div><!-- End div .col-sm-4 -->


    <div class="col-sm-9 portlets">
        <a href="{$Think.server.HTTP_REFERER}" class="btn btn-success"><i class="fa fa-reply"></i> 返回</a>
        <hr>
        <div class="widget">
            <div class="widget-header ">
                <h2><i class="icon-chart-pie-1"></i> <strong>笔记内容</strong></h2>
            </div>
            <div class="widget-content padding">
                <p>{$data['content']}</p>
            </div>
        </div>
        <h2><strong>图 集</strong></h2>

        <div class="gallery-wrap">
            {volist name="data['img']" id="val"}
            <div class="column">
                <div class="inner">
                    <a class="zooming" href="/static/uploads/img/{$val}" title="{$val}">
                        <div class="img-wrap">
                            <img src="/static/uploads/img/{$val}" alt="{$val}"
                                 title="I{$val}" class="mfp-fade" >
                        </div>
                    </a>
                </div>
            </div>
            {/volist}
        </div>
    </div>
</div>
<script src="__ADJS__myjs/note.js"></script>
{/block}